home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Interactive Media Design Review 1999
/
Interactive Media Design Review 1999.iso
/
pc
/
Demos
/
Bombardier_PC
/
BSCRIPTS.CST
/
00020_Script_animationV-UD
< prev
next >
Wrap
Text File
|
1999-04-25
|
1KB
|
59 lines
-- ⌐ 1998 @radical.media, inc. & Concurrent New Media Group, L.L.C.
-- Developed for Bombardier, Inc.
--
-- All programming developed by:
-- Robert Fabricant, Valerie Valoueva, Ossi Shaked,
-- Henry Sauvageot, Chris Howell & Chris Girand
--
-- Use of this code by parties other than @radical.media, inc. or their
--agents
-- without the express written consent of @radical.media, inc. AND Concurrent
-- New Media Group, L.L.C. is strictly prohibited.
------------------------------------------------------
on getBehaviorDescription
return "simulates 2D object movie."
end
on mousedown
global oldIndex,sseq,eseq, oldH
repeat while the mouseDown
set index = the mouseV
set curH = the mouseH
set changeH = abs(oldH - curH)
set changeV = abs(index-oldIndex)
if changeH >= changeV then
set movedHoris = TRUE
else
set movedHoris = FALSE
end if
if not(movedHoris) then
if index > oldIndex and oldIndex <> 0 then
if the frame < eseq then go to the frame +1
else
if index < oldIndex and oldIndex <> 0 then
if the frame > sseq then go to the frame -1
end if
end if
end if
updateStage
set oldIndex = index
set oldH = curH
end repeat
pass
end
on mouseup
global oldIndex, oldH
set oldIndex = 0
set oldH = 0
pass
end